package com.vmj.classfile.entity.attribute;

import com.vmj.classfile.ClassReader;

/**
 * Created by yangshoujun on 2017/8/6 下午3:36.
 */
public class UnparsedAttribute extends AbstractAttribute {

    private String name;
    private int length;
    private byte[]  info;

    public UnparsedAttribute(ClassReader classReader, Integer length) {
        super(classReader);
        this.length = length;
    }

    public void parse() {
        info = getClassReader().readByte(length);
    }

    public String getName() {
        return name;
    }

    public int getLength() {
        return length;
    }

    public byte[] getInfo() {
        return info;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public void setInfo(byte[] info) {
        this.info = info;
    }
}
